// import Mock from 'mockjs'
const Mock = require('mockjs')

const area = ['海上', '风险', '龙蛋', '纽约', '八维']

const data = Mock.mock({
  "citys|10": [{
    'label': '@city',
    'value': '@id',
    'children|5-10': [{
      'label|1': area,
      'value': '@id',
    }]
  }],
  'list|100': [{
    'url': '@image(100x100, @color)',
    'title': '@ctitle',
    "id": '@id',
    "price|500-4000": 1,
    "desc": '@cword(10,20)',
    "area|1": area,
    "type|1-4": 1
  }]
})

// export default data
module.exports = data
// console.log(data.citys);
// Mock.mock('/api/citys', () => {
//   return {
//     code: 200,
//     data: data.citys
//   }
// })

// Mock.mock('/api/list', () => {
//   return {
//     code: 200,
//     data: data.list
//   }
// })